import request from '@/util/request'

export function fetchCommentByTopicId(topic_Id){
    return request({
        url: '/comment/get_comments',
        methods: 'get',
        params: {
            topicid: topic_Id
        }
    })
}

export function pushComment(data){
    return request({
        url: '/comment/add_comment',
        method: 'post',
        data: data
    })
}